home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11027 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.lang.c
  2. Path: axcdf1.pd.infn.it!LORETI
  3. From: loreti@axcdf1.pd.infn.it (Maurizio Loreti)
  4. Subject: Re: Help !!!!! on 'strstr"
  5. X-Nntp-Posting-Host: axcdf1.pd.infn.it
  6. Message-ID: <DoMKD7.I9C@news.cern.ch>
  7. Sender: news@news.cern.ch (USENET News System)
  8. Reply-To: loreti@axcdf1.pd.infn.it
  9. Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
  10. References: <314703FF.4045@msmail.st.stems.com>,<DoE30t.G5u@iquest.net>
  11. Date: Thu, 21 Mar 1996 15:58:17 GMT
  12.  
  13. In article <DoE30t.G5u@iquest.net>, dlmiller@iquest.net (Doug & Rose Miller) writes:
  14.  
  15. Please, hit <CR> before column 80.
  16.  
  17. >Use strupr() on both strings -- to insure they are both the same case -- before using strstr().
  18. >Of course, strlwr() would work also.
  19.  
  20. My systems lack a strlwr and a strupr; they are non-standard.
  21.  
  22. >Perhaps you should copy both strings to temporary areas and use strupr() on the temps,
  23. >because it does not merely return the case-shifted string, it actually case-shifts the original.
  24.  
  25. You MUST.  You are not allowed to modify string constants.
  26. --
  27. Maurizio Loreti                       http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
  28. Un. of Padova, Dept. of Physics - Padova, Italy          loreti@padova.infn.it
  29.